package edu.washington.tcss360.burningpenguins.queries;

import java.util.Date;

/**
 * Queries by the SubmitDeadline column of a table.
 * @author Chris Gelatt
 * @version 1.0
 * @since 2013-11-2
 *
 */
public class BySubmitDeadline implements QueryBy
{
	private Long submitDeadline;
	
	public BySubmitDeadline(Long submitDeadline)
	{
		this.submitDeadline = submitDeadline;
	}
	
	public BySubmitDeadline(Date submitDeadline)
	{
		this.submitDeadline = submitDeadline.getTime();
	}
	
	/**
	 * {@inheritDoc}
	 */
	public String toString()
	{
		return "SubmitDeadline = " + submitDeadline;
	}
}
